package com.feather.common.web;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

/**
 * @author flogyin
 */
public interface XFileItem {
	String getFieldName();

	String getContentType();

	String getName();

	void setName(String name);

	long getSize();

	byte[] get();

	File getStoreLocation();

	InputStream getInputStream() throws IOException;

	OutputStream getOutputStream() throws IOException;

	void write(File file) throws Exception;

	void delete();
}
